package com.ylcode.libback.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylcode.libback.model.pojo.Book;

import java.util.List;

public interface BookService extends IService<Book> {
    /**
     * 根据书名或者作者查询书籍
     * @return Book
     */
    List<Book> selectByBookNameOrAuthor(String param);

    /**
     * 借书
     */
    Boolean lend(Long bookId, Long userId);
}
